<?php
  //清除登录成功的标记
  session_start();
  $_SESSION=array();
  session_destroy();
  header("location:login.php");

